#include "Camera.h"
#include "RenderContext.h"

namespace egg{

    Camera::Camera(){
        mFov=20;
        mFar=5;
        mNear=0.1;
        mUp=vec3(0,1,0);
        mCenter=vec4(0,0,0,1);
        mTarget=vec4(0,0,-1,1);
    }

    Camera::~Camera(){
    }

    vec3 Camera::getWorldCenter(){
        return vec3(mLocal2WorldMatrix*mCenter);
    }

    vec3 Camera::getWorldTarget(){
        return vec3(mLocal2WorldMatrix*mTarget);
    }

}